package com.gaoyubo.controller;

import com.gaoyubo.ProjectFeign;
import com.gaoyubo.service.FeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin
public class PController {
    @Autowired
    private FeignService feignService;
    @RequestMapping("list")
    public String getList(){
        return feignService.getList();
    }
}
